<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>{$app_name}</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="styles/general.css" rel="stylesheet" type="text/css" />

{literal}
<style type="text/css">
#header-div {
	background: #278296;
	border-bottom: 1px solid #FFF;
}

#logo-div {
	height: 50px;
	float: left;
}

#license-div {
	height: 50px;
	float: left;
	text-align: center;
	vertical-align: middle;
	line-height: 50px;
}

#license-div a:visited,#license-div a:link {
	color: #EB8A3D;
}

#license-div a:hover {
	text-decoration: none;
	color: #EB8A3D;
}

#submenu-div {
	height: 50px;
}

#submenu-div ul {
	margin: 0;
	padding: 0;
	list-style-type: none;
}

#submenu-div li {
	float: right;
	padding: 0 10px;
	margin: 3px 0;
	border-left: 1px solid #FFF;
}

#submenu-div a:visited,#submenu-div a:link {
	color: #FFF;
	text-decoration: none;
}

#submenu-div a:hover {
	color: #F5C29A;
}

#loading-div {
	clear: right;
	text-align: right;
	display: block;
}

#menu-div {
	background: #80BDCB;
	font-weight: bold;
	height: 24px;
	line-height: 24px;
}

#menu-div ul {
	margin: 0;
	padding: 0;
	list-style-type: none;
}

#menu-div li {
	float: left;
	border-right: 1px solid #192E32;
	border-left: 1px solid #BBDDE5;
}

#menu-div a:visited,#menu-div a:link {
	display: block;
	padding: 0 20px;
	text-decoration: none;
	color: #335B64;
	background: #9CCBD6;
}

#menu-div a:hover {
	color: #000;
	background: #80BDCB;
}

#submenu-div a.fix-submenu {
	clear: both;
	margin-left: 5px;
	padding: 1px 5px;
	*padding: 3px 5px 5px;
	background: #DDEEF2;
	color: #278296;
}

#submenu-div a.fix-submenu:hover {
	padding: 1px 5px;
	*padding: 3px 5px 5px;
	background: #FFF;
	color: #278296;
}

#menu-div li.fix-spacel {
	width: 30px;
	border-left: none;
}

#menu-div li.fix-spacer {
	border-right: none;
}
</style>

<script type="text/javascript">

function modalDialog(url, name, width, height)
{
  if (width == undefined)
  {
    width = 400;
  }
  if (height == undefined)
  {
    height = 300;
  }

  if (window.showModalDialog)
  {
    window.showModalDialog(url, name, 'dialogWidth=' + (width) + 'px; dialogHeight=' + (height+5) + 'px; status=off');
  }
  else
  {
    x = (window.screen.width - width) / 2;
    y = (window.screen.height - height) / 2;

    window.open(url, name, 'height='+height+', width='+width+', left='+x+', top='+y+', toolbar=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, modal=yes');
  }
}

function ShowToDoList()
{
  try
  {
    var mainFrame = window.top.frames['main-frame'];
    mainFrame.window.showTodoList(adminId);
  }
  catch (ex)
  {
  }
}
{/literal}

var adminId = "{$admin_id}"; 
</script>
</head>
<body>
<div id="header-div">
<div id="submenu-div">
<ul>
	<li><a href="message.php?act=list" target="main-frame">{$lang.view_message}</a></li>
	<li><a href="privilege.php?act=modif" target="main-frame">{$lang.profile}</a></li>
	<li><a
		href="javascript:window.top.frames['main-frame'].document.location.reload();window.top.frames['header-frame'].document.location.reload()">{$lang.refresh}</a></li>
	<li><a href="#" onclick="ShowToDoList()">{$lang.todolist}</a></li>
</ul>
<div id="send_info"
	style="padding: 5px 10px 0 0; clear: right; text-align: right; color: #FF9900; width: 40%; float: right;">

<a href="index.php?act=clear_cache" target="main-frame"
	class="fix-submenu">{$lang.clear_cache}</a> <a
	href="privilege.php?act=logout" target="_top" class="fix-submenu">{$lang.signout}</a>
</div>

<div id="load-div"
	style="padding: 5px 10px 0 0; text-align: right; color: #FF9900; display: none; width: 40%; float: right;"><img
	src="images/top_loader.gif" width="16" height="16"
	alt="{$lang.loading}" style="vertical-align: middle" />
{$lang.loading}</div>
</div>
</div>
<div id="menu-div">
<ul>
	<li class="fix-spacel">&nbsp;</li>
	<li><a href="index.php?act=main" target="main-frame">{$lang.admin_home}</a></li>
	<li><a href="privilege.php?act=modif" target="main-frame">{$lang.set_navigator}</a></li>
	{foreach from=$nav_list item=item key=key}
	<li><a href="{$key}" target="main-frame">{$item}</a></li>
	{/foreach}
	<li class="fix-spacer">&nbsp;</li>
</ul>
<br class="clear" />
</div>
</body>
</html>